diff options
Diffstat (limited to 'app/api/projects/[projectId]/cover/route.ts')
| -rw-r--r-- | app/api/projects/[projectId]/cover/route.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/api/projects/[projectId]/cover/route.ts b/app/api/projects/[projectId]/cover/route.ts index 802e2ab6..f4038d43 100644 --- a/app/api/projects/[projectId]/cover/route.ts +++ b/app/api/projects/[projectId]/cover/route.ts @@ -51,15 +51,15 @@ export async function GET( ) } - // DOCX 파일로 응답 + // PDF 파일로 응답 // Buffer를 Uint8Array로 변환 const uint8Array = new Uint8Array(result.buffer) return new NextResponse(uint8Array, { status: 200, headers: { - "Content-Type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", - "Content-Disposition": `attachment; filename="${encodeURIComponent(result.fileName || "cover.docx")}"`, + "Content-Type": "application/pdf", + "Content-Disposition": `attachment; filename="${encodeURIComponent(result.fileName || "cover.pdf")}"`, "Content-Length": result.buffer.length.toString(), }, }) |
